<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Menu extends MX_Controller {
	public function index()
	{
		
	}
	
	/*
		Create main menu
	*/
	public function create_main_menu() {
		$show_account = FALSE;
		
		$this->load->library('session');
		$logged_in = $this->session->userdata('logged_in');
		$role = $this->session->userdata('cust_role');
		
		if($logged_in == TRUE && $role == 'customer')
			$show_account = TRUE;
		$this->load->view('mainmenu', array('show_account' => $show_account));
	}
	/*
		Create brand car Menu
		inside brand option will be a model list 
	*/
	public function create_car_menu() {
		$menu = simplexml_load_file(FCPATH . 'data/menucar.xml');
		$this->load->view('carmenu', array('menu' => $menu));
	}
}

/* End of file home.php */
/* Location: ./application/modules/menu/controllers/menu.php */